package com.zhaungwei.weather.service;

import com.zhaungwei.weather.vo.WeatherResponse;

/**
 * @author LeviCoder
 * @create 2019-03-21 0:07
 */
public interface WeatherDataService {
    /**
     * 根据城市名称查询天气数据
     *
     * @param city
     * @return
     */
    WeatherResponse getDataByCity(String city);

    /**
     * 根据城市ID查询天气数据
     *
     * @param citykey
     * @return
     */
    WeatherResponse getDataBycitykey(String citykey);

    /**
     * 根据城市ID来同步天气
     * @param citykey
     */
    void syncDateByCitykey(String citykey);
}
